import {http} from '@/common/http.interceptor'

export const register = (data) =>  http("index/register", data, 'POST') // 是否注册

export const usereditinfo = (data) =>  http("index/usereditinfo", data, 'POST') // 编辑信息

export const wxlogin = (data) =>  http("index/wxlogin", data, 'POST') // 登录

export const userlist = (data) =>  http("index/userlist", data, 'GET') // 获取用户列表

export const annouce = (data) =>  http("index/annouce", data, 'GET') // 获取公告

export const newslist = (data) =>  http("index/newslist", data, 'GET') // 资讯列表

export const newsdetail = (data) =>  http("index/newsdetail", data, 'POST') // 资讯详情

export const userheal = (data) =>  http("index/userheal", data, 'POST') // 健康上报

export const hspinfo = (data) =>  http("index/hspinfo", data, 'GET') // 医院信息

export const appoimenthsp = (data) =>  http("index/appoimenthsp", data, 'POST') // 预约医院

export const appoimentStatus = (data) =>  http("index/appoimentStatus", data, 'POST') // 医院预约状态

export const cancleappoi = (data) =>  http("index/cancleappoi", data, 'POST') // 取消预约状态

export const goodlist = (data) =>  http("index/goodslists", data, 'GET') // 商品列表

export const deliverinfo = (data) =>  http("index/deliverinfo", data, 'POST') // 提交商品订单

export const orderlist = (data) =>  http("index/orderlist", data, 'POST') // 订单列表

export const deleteorder = (data) =>  http("index/deleteorder", data, 'POST') // 取消订单

export const userappeallist = (data) =>  http("index/userappeallist", data, 'POST') // 反馈列表

export const userupappeal = (data) =>  http("index/userupappeal", data, 'POST') // 发布诉求反馈

export const userEvo = (data) =>  http("index/userevo", data, 'POST') // 用户评价反馈
